const statsColumns = {
  timeout: [
    {
      title: '员工姓名',
      dataIndex: 'username'
    },
    {
      title: '职位',
      dataIndex: 'zw'
    },
    {
      title: '超时次数',
      dataIndex: 'num'
    },
    {
      title: '超时率',
      dataIndex: 'bl'
    }
  ],
  patent: [
    {
      title: '专利师',
      dataIndex: 'patenteer_name',
      scopedSlots: { customRender: 'patenteer_name' }
    },
    {
      title: '接稿',
      dataIndex: 'all_num',
      scopedSlots: { customRender: 'all_num' },
      needTotal: true
    },
    // {
    //   title: '上月同期接稿',
    //   scopedSlots: { customRender: 'all_num' },
    //   needTotal: true
    // },
    {
      title: '定稿',
      dataIndex: 'over_num',
      scopedSlots: { customRender: 'over_num' },
      needTotal: true
    },
    // {
    //   title: '上月同期定稿',
    //   scopedSlots: { customRender: 'all_num' },
    //   needTotal: true
    // },
    {
      title: '折算业务数',
      dataIndex: 'converted_engineer_num',
      scopedSlots: { customRender: 'converted_engineer_num' },
      needTotal: true
    },
    {
      title: '定稿率',
      dataIndex: 'dgl',
      scopedSlots: { customRender: 'dgl' }
    }
  ],
  flow: [
    {
      title: '流程人员',
      dataIndex: 'receive_name',
      scopedSlots: { customRender: 'receive_name' }
    },
    {
      title: '接稿',
      dataIndex: 'all_num',
      scopedSlots: { customRender: 'all_num' },
      needTotal: true
    },
    {
      title: '定稿',
      dataIndex: 'over_num',
      scopedSlots: { customRender: 'over_num' },
      needTotal: true
    },
    {
      title: '折算业务数',
      dataIndex: 'converted_flow_num',
      scopedSlots: { customRender: 'converted_flow_num' },
      needTotal: true
    },
    {
      title: '定稿率',
      dataIndex: 'dgl',
      scopedSlots: { customRender: 'dgl' }
    }
  ],
  business: [
    {
      title: '业务名称',
      dataIndex: 'business_name',
      width: '500px'
    },
    {
      title: '专利接稿数',
      dataIndex: 'engineer_all_num',
      scopedSlots: { customRender: 'engineer_all_num' }
    },
    {
      title: '专利定稿数',
      dataIndex: 'engineer_over_num',
      scopedSlots: { customRender: 'engineer_over_num' }
    },
    {
      title: '专利定稿率',
      dataIndex: 'engineer_dgl',
      scopedSlots: { customRender: 'engineer_dgl' }
    },
    {
      title: '流程领取数量',
      dataIndex: 'flow_all_num',
      scopedSlots: { customRender: 'flow_all_num' }
    },
    {
      title: '流程完成数量',
      dataIndex: 'flow_over_num',
      scopedSlots: { customRender: 'flow_over_num' }
    },
    {
      title: '流程完成率',
      dataIndex: 'flow_dgl',
      scopedSlots: { customRender: 'flow_dgl' }
    }
  ],
  patent_list: [
    {
      title: '合同编号',
      dataIndex: 'contract_no',
      scopedSlots: { customRender: 'contract_no' }
    },
    {
      title: '顾问',
      dataIndex: 'adviser'
    },
    {
      title: '业务名称',
      dataIndex: 'business_name'
    },
    // {
    //   title: '业务组别',
    //   dataIndex: 'cat_group'
    // },
    {
      title: '下单时间',
      dataIndex: 'submit_mats_time'
    },
    {
      title: '定稿时间',
      dataIndex: 'patenteer_submit_time'
    },
    {
      title: '定稿文件',
      dataIndex: 'patenteer_filename',
      scopedSlots: { customRender: 'patenteer_filename' }
    },
    {
      title: '所属专利师',
      dataIndex: 'patenteer'
    },
    {
      title: '折算业务数',
      dataIndex: 'converted_engineer_num'
    },
    {
      title: '费用',
      dataIndex: 'official_fee',
      scopedSlots: { customRender: 'official_fee' },
      sorter: true
    }
  ],
  flow_list: [
    {
      title: '顾问',
      dataIndex: 'adviser'
    },
    {
      title: '业务名称',
      dataIndex: 'business_name',
      ellipsis: true
    },
    // {
    //   title: '业务组别',
    //   dataIndex: 'cat_group'
    // },
    {
      title: '领取时间',
      dataIndex: 'receive_appoint_time'
    },
    {
      title: '下单时间',
      dataIndex: 'submit_mats_time'
    },
    {
      title: '提交官方时间',
      dataIndex: 'receive_official_time'
    },
    {
      title: '流程人员',
      dataIndex: 'receive_name'
    },
    {
      title: '折算业务数',
      dataIndex: 'converted_flow_num'
    },
    {
      title: '费用',
      dataIndex: 'official_fee',
      scopedSlots: { customRender: 'official_fee' },
      sorter: true
    }
  ],
  business_list: [
    {
      title: '合同号',
      dataIndex: 'contract_no'
    },
    {
      title: '业务号',
      dataIndex: 'business_no'
    },
    {
      title: '顾问',
      dataIndex: 'adviser'
    },
    {
      title: '业务名称',
      dataIndex: 'business_name',
      ellipsis: true
    },
    {
      title: '专利师',
      dataIndex: 'patenteer'
    },
    {
      title: '定稿时间',
      dataIndex: 'patenteer_submit_time'
    },
    {
      title: '定稿文件',
      dataIndex: 'patenteer_filename',
      scopedSlots: { customRender: 'patenteer_filename' }
    },
    {
      title: '领取时间',
      dataIndex: 'receive_appoint_time'
    },
    {
      title: '下单时间',
      dataIndex: 'submit_mats_time'
    },
    {
      title: '流程人员',
      dataIndex: 'receive_name'
    },
    {
      title: '提交官方时间',
      dataIndex: 'receive_official_time'
    },
    {
      title: '专利师折算',
      dataIndex: 'converted_engineer_num'
    },
    {
      title: '流程折算',
      dataIndex: 'converted_flow_num'
    },
    {
      title: '费用',
      dataIndex: 'official_fee',
      scopedSlots: { customRender: 'official_fee' },
      sorter: true
    }
  ]
}

export default statsColumns
